<template>
    <div class="main">
        <p>页面未找到,请退出重新登录,尝试ctrl+F5清空缓存!</p>
        <el-button type="primary" size="medium" @click="$router.push({name:'welcome'})">返回首页</el-button>
        <el-button type="primary" size="medium" @click="out">退出登录</el-button>
    </div>
</template>
<script>
export default {
    methods: {
        out() {
            this.$http
                .post("/admin/login/index.php?act=login&op=logout")
                .then(res => {
                    if (res.code === 1) {
                        this.$store.commit("SET_USERINFO", {});
                        this.$router.push("/sign-in");
                    }
                });
        }
    }
}
</script>
<style scoped>
.main {
    text-align: center;
    font-size: 30px;
    padding: 100px 0;
}
</style>